/*
 * Powered By XY
 * Since 2020
 */

package com.xy.biz.base.manager;

import com.xy.biz.base.domain.bo.EquipmentBO;
import com.xy.biz.base.domain.query.EquipmentQuery;

import java.util.Collection;
import java.util.List;

/**
 *
 *
 * @author yzh
 * @date 2021-4-13
 */
public interface EquipmentManager {

    /**
     * 保存
     *
     * @param equipmentBO
     */
    int saveEquipment(EquipmentBO equipmentBO);

    /**
     * 保存多个
     *
     * @param collection
     */
    int saveAllEquipment(Collection<EquipmentBO> collection);

    /**
     * 更新
     *
     * @param equipmentBO
     */
    int updateEquipment(EquipmentBO equipmentBO);

    /**
     * 删除
     *
     * @param equipmentId
     */
    int deleteEquipment(Long equipmentId);

    /**
     * 查找一个
     *
     * @param equipmentId
     * @return
     */
    EquipmentBO getEquipment(Long equipmentId);

    /**
     * 查找多个
     *
     * @param collection 标识集合
     */
    List<EquipmentBO> listEquipmentById(Collection<Long> collection);

    /**
     * 查找多个
     *
     * @param query 查找条件
     */
    List<EquipmentBO> listEquipment(EquipmentQuery query);

    int lockup(Collection<Long> collection);

    int unlock(Collection<Long> collection);

    /**
     * 统计个数
     *
     * @param query 查找条件
     */
    int countEquipment(EquipmentQuery query);

}
